package HomeWork_20910325;

import java.util.Arrays;

public class HomeWork_03 {

	public  static void main(String[] args){
		int[] numbers = {10,20,11,35,6,89};
		int temp;
		for (int i = 0; i < numbers.length-1; i++) {
			for (int j = 0; j < numbers.length-i-1; j++) {
				if(numbers[j] > numbers[j+1]){
					temp = numbers[j];
					numbers[j] = numbers[j+1];
					numbers[j+1] = temp;
				}
			}
		}
		System.out.println(Arrays.toString(numbers));
	}
}
